<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

    echo heading("Excluir Contas",4,"class='divisor'");
    $idConta = $this->uri->segment(3);
    if($idConta == NULL) redirect('PrincipalController');
    $query = $this->ContaModel->getIdConta($idConta)->row();				
    $atributos_formulario = array('class' => 'formcadastros', 'id'=>'formcadastro');
    echo form_open ("ContaController/chamarTelaExcluirConta/$idConta", $atributos_formulario);
        echo form_label('Descrição da Conta ::','conta');
        echo form_input(array('name'=>'descricao'), set_value('descricao', $query->descricao),'disabled="disabled"');
        echo br();
        $btnGravar = array('name' => 'button','id' => 'button','value' => 'true','type' => 'submit','content' => 'OK','class' => 'btn btn-primary');
        echo form_button($btnGravar);
        echo nbs(4);                                
        echo anchor("PrincipalController/",' Voltar ', array('title' =>'Voltar para principal', 'class' => 'btn btn btn-danger'));
        echo form_hidden('idConta', $query->id_conta);
        echo form_hidden('idContaPai', $query->id_conta_pai);       
    echo form_close();
?>
